package cn.itsource.blog.mapper;

import cn.itsource.blog.domain.Article;
import cn.itsource.query.BaseQuery;

import java.util.List;

public interface ArticleMapper {
    void save(Article article);

    void update(Article article);

    void delete(Long id);

    Article get(Long id);

    List<Article> getAllByQuery(BaseQuery userQuery);

    void batchDelete(List<Article> users);

    List<Article> getAll();

}
